package cn.wolfcode.feign;

import cn.wolfcode.common.web.Result;
import cn.wolfcode.domain.SeckillProductVo;
import cn.wolfcode.feign.fallback.SeckillProductFeignFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
//兜底数据
@FeignClient(value = "seckill-service",fallback = SeckillProductFeignFallback.class)
public interface SeckillProductFeignApi {
    //按照time进行分片数据缓存
    @RequestMapping("/seckillProduct/querSeckillProduct")
    Result<List<SeckillProductVo>> querySeckillProduct(@RequestParam("time") Integer time);
}
